/*
高尔夫
搏击
击剑
马术
滑冰
橄榄球
合气道
棒球
攀岩
剑道
射箭
滑雪
 */
var baseU = "https://www.didigolf.top/assets/vipcard/"
let baseURL = 'https://www.didigolf.top/'; // 测试 - 'https://www.dicard.cn/'  正式 -  https://www.didigolf.top/
Page({
  /**
   * 页面的初始数据
   */
  data: {
    baseU: "https://www.didigolf.top",
    autoplay: false,
    duration: 1000,
    imgSrc: "",
    isShowFrames: false,
    isShowFrames2: false,
    frames: [],

    buyBtnType: 0,
    sports_ju: [{
        name: "高尔夫",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "ka123(2).png",
        colorPic: "",
        down: [{
          title: "泰格高尔夫",
          list: ["北京朝阳区东五环王四营北路南花园188号"],
          picture: baseU + "fen123.png",
          price: "价值88元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "新起点高尔夫(亦庄校区)",
          list: ["北京鸿禧国际高尔夫练习场"],
          picture: baseU + "fen123.png",
          price: "价值88元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "新起点高尔夫(王四营校区)",
          list: ["北京市朝阳区王四营古塔北路宏承高尔夫俱乐部"],
          picture: baseU + "fen123.png",
          price: "价值88元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "海鹏高尔夫",
          list: ["北京市海淀区树村东口临7号"],
          picture: baseU + "fen123.png",
          price: "价值88元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "佳伟高尔夫练习场",
          list: ["北京市朝阳区来广营北路150号"],
          picture: baseU + "fen123.png",
          price: "价值88元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["高尔夫体验单课"]
        }, {
          title: "使用时间",
          list: ["周一到周日9：00-20：00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["3岁以上"]
        }, {
          title: "教练及装备",
          list: ["1v1教练，提供高尔夫球杆，高尔夫球"]
        }, {
          title: "课程信息",
          list: ["高尔夫礼仪 着装的规范、高尔夫规则及在场上应注意事项的讲解", "各球杆教学 铁杆、木杆的基础教学和原理分析", "技术动作 高尔夫铁杆挥杆技术动作的教学及练习"]
        }]
      }, {
        name: "搏击",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Group2.png",
        colorPic: "",
        down: [{
          title: "巨石搏击会馆",
          list: ["海淀区王庄路33号清华同方科技广场对过二楼"],
          picture: baseU + "fen123.png",
          price: "价值600元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "首泰格斗馆(朝外SOHO总馆)",
          list: ["朝阳区朝外大街乙6号朝外soho B座0219 0220 0235号二楼"],
          picture: baseU + "fen123.png",
          price: "价值400元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "首泰格斗馆(爱琴海店)",
          list: ["朝阳区七圣中街12号院爱琴海购物公园6层"],
          picture: baseU + "fen123.png",
          price: "价值400元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "首泰格斗馆(银河SOHO店)",
          list: ["东城区朝阳门南大街银河SOHOA座二层10222"],
          picture: baseU + "fen123.png",
          price: "价值400元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "拳心拳力搏击(劲松店)",
          list: ["朝阳区农光南里1号.龙辉大厦1304室"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "拳心拳力搏击(陶然亭店)",
          list: ["西城区太平街6号.富力摩根中心E座521室"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "拳心拳力搏击(蒲黄榆店)",
          list: ["丰台区蒲方路物美大卖场五层513"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "同門搏击格斗馆",
          list: ["西城区菜市口大街平原里21号亚泰中心六层"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "义拳格斗馆",
          list: ["朝阳区建华南路17号丽舍公寓B1层(地杰长安逸)"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "国奥心动力散打拳击俱乐部",
          list: ["朝阳区奥体中心英东游馆二层2001室"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "波澜体育搏击运动中心",
          list: ["朝阳区青年路西里国美餐饮街2号院6号楼底商2楼"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "波澜体育运动馆",
          list: ["海淀区西三环北路2号北京外国语大学东校区体育馆四层"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "波澜体育运动馆(朝阳CBD)",
          list: ["朝阳区朝阳CBD远洋光华国际AB座B1楼(世贸天阶CBD)"],
          picture: baseU + "fen123.png",
          price: "价值230元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["搏击入门单次体验课"]
        }, {
          title: "使用时间",
          list: ["周一至周日10:00-19:00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["4-60岁"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，全套装备。"]
        }, {
          title: "课程信息",
          list: ["热身：让身体热起来，做一些协调性动作；", "基本功：出拳的要点，手脚配合的联系，距离感的训练；", "专项练习：手靶(反应训练)、沙包(体能训练，发泄负情绪)；", "对战训练：与教练员激情对战，安全刺激", "体能训练(腹肌)", "抻拉放松"]
        }]
      }, {
        name: "击剑",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Group3.png",
        colorPic: "",
        down: [{
          title: "壹加击剑训练营(天秀校区)",
          list: ["北京市海淀区农大南路天秀路10号"],
          picture: baseU + "fen123.png",
          price: "价值388元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "弘铭国际击剑",
          list: ["北京市昌平区天通苑西三区北门西侧弘铭击剑馆"],
          picture: baseU + "fen123.png",
          price: "价值388元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "佼佼者击剑俱乐部",
          list: ["北京朝阳区来广营润泽公馆北门"],
          picture: baseU + "fen123.png",
          price: "价值388元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["击剑基础课程单次"]
        }, {
          title: "使用时间",
          list: ["周二至周五 09:00-19:30 周六至周日 09:00-16:00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["4岁以上"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，全套装备。"]
        }, {
          title: "课程信息",
          list: ["主教练讲解上课要求、注意事项；", "准备活动：灵敏协调练习，全身热身后牵拉；", "实战练习：基础技术动作入门教学、双人实战+团体实战；", "练习结束：放松牵拉、点评、换装。"]
        }]
      },

      {
        name: "滑冰",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "MaskCopy(3).png",
        colorPic: "",
        down: [{
            title: "奥森冰世界乐园",
            list: ["朝阳区北京朝阳区奥林匹克森林公园北门"],
            picture: baseU + "fen123.png",
            price: "价值168元",
            price1: "预约",
            is_pay: 1
          },
          //   {
          //   title: "小狼国际滑冰俱乐部",
          //   list: ["朝阳区平方路48号院内"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, 
          // {
          //   title: "华星冰上运动中心(博大路)",
          //   list: ["北京市博大路8号城外诚润京广场内"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, 
          // {
          //   title: "华星冰上运动中心(阜石路)",
          //   list: ["北京市海淀区玉泉路5号"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, {
          //   title: "华星冰上运动中心(西三旗)",
          //   list: ["北京市昌平区回龙观镇 吉晟别墅北门西侧"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, {
          //   title: "华星冰上运动中心(沙河)",
          //   list: ["昌平区032县道北京新华电脑学校旁"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, {
          //   title: "华星冰上运动中心(马泉营)",
          //   list: ["朝阳区京承高速黄港2出口 马泉营奶东公园北侧"],
          //   picture: baseU + "fen123.png",
          //   price: "价值168元",
          //   price1: "预约",
          //   is_pay: 1
          // }, 
        ],
        frames: [{
          title: "课程名称",
          list: ["滑冰单次体验课"]
        }, {
          title: "使用时间",
          list: ["9:00-21:00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["3.5岁-8岁"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，提供基础护具"]
        }, {
          title: "课程信息",
          list: ["换装：穿着冰上专业装备，听教练讲解滑冰时的安全知识。", "基础练习：上冰练习，包括站立、踏步技巧等；", "滑冰练习：通过教练指导后，开始自行滑冰，练习以上所学到的技巧。"]
        }]
      }, {
        name: "橄榄球",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Rectangle6(2).png",
        colorPic: "",
        down: [{
          title: "巨力神威(通州校区)",
          list: ["北京市通州区健龙森青鸟盛地足球公园(梨园)"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "巨力神威(太阳宫校区)",
          list: ["西坝河路太阳宫足球俱乐部内(望京桥)"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "巨力神威(天坛校区)",
          list: ["天坛东门C口超音足球训练营"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "巨力神威(崇文门校区)",
          list: ["崇文门外大街国瑞百货B1"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "魔童橄榄球俱乐部(魏公村)",
          list: ["魏公村民族大学东操场-小足球场"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "魔童橄榄球俱乐部",
          list: ["海淀区四道口路2号京果商厦A座504"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "巨石达阵橄榄球俱乐部",
          list: ["巨石达阵橄榄球俱乐部"],
          picture: baseU + "fen123.png",
          price: "价值398元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["橄榄球单次入门课程"]
        }, {
          title: "使用时间",
          list: ["周六8:30-12:00 、周日8:30-17:00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["3岁以上"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，提供体验队服、头盔、肩甲。"]
        }, {
          title: "课程信息",
          list: ["橄榄球文化、礼仪讲解；", "橄榄球规则讲解；", "橄榄球基本动作、技巧讲授；", "趣味性游戏热身运动，实战练习。"]
        }]
      }, {
        name: "合气道",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Rectangle6(3).png",
        colorPic: "",
        down: [{
          title: "合气道心道场(天坛本部)",
          list: ["东城区天坛东路13号(天坛体育中心游泳馆)"],
          picture: baseU + "fen123.png",
          price: "价值100元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "合气道心道场(安贞)",
          list: ["朝阳区安贞桥东胜古中路2号院4号楼胜古体育馆"],
          picture: baseU + "fen123.png",
          price: "价值100元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["合气道单次课程"]
        }, {
          title: "使用时间",
          list: ["每周二19：30-21：00 每周六16：30-18：00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["4岁以上"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，提供竹剑。"]
        }, {
          title: "课程信息",
          list: ["准备活动：教练带领进行课前热身；", "礼仪讲解：教练讲授合气道规矩礼法；", "基础练习：教练带领进行基础练习；", "防身技巧：还原一些场景给大家讲解防身小技巧，并带领大家练习。"]
        }]
      }, {
        name: "棒球",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Rectangle6(4).png",
        colorPic: "",
        down: [{
            title: "烈光少棒(奥体校区)",
            list: ["朝阳区北辰路奥体中心垒球场"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "烈光少棒(南湖校区)",
            list: ["朝阳区宜居南路金隅南湖公园"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "烈光少棒(比如校区)",
            list: ["朝阳区京顺路111号"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          },
          {
            title: "烈光少棒(太阳宫校区)",
            list: ["朝阳区太阳宫体育休闲公园"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "强棒棒球",
            list: ["三元桥比如世界"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "飞雪棒球俱乐部",
            list: ["北京来恩堡国际酒庄"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "飞雪棒球俱乐部",
            list: ["北京市房山区长阳京深路北"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "飞雪棒球俱乐部",
            list: ["北京市朝阳区安外小关安定路1号"],
            picture: baseU + "fen123.png",
            price: "价值200元",
            price1: "预约",
            is_pay: 1
          },
        ],
        frames: [{
          title: "课程名称",
          list: ["棒球单次入门课程"]
        }, {
          title: "使用时间",
          list: ["8：00-22：00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["4岁以上"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，提供棒球手套，棒球棒，棒球，垒球，棒球训练服，棒球帽。"]
        }, {
          title: "课程信息",
          list: ["签到入场、分组、试戴器具；", "教练组织进行热身运动；", "测试孩子体能、爆发力、身体协调能力、评级；", "棒球体验；", "休息喝水，并观看棒球小队员的队内训练赛；", "分组趣味垒间跑比赛。"]
        }]
      }, {
        name: "剑道",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Rectangle6(1).png",
        colorPic: "",
        down: [{
          title: "九州乾元剑道馆",
          list: ["东城区朝阳门内大街凯德华玺288号浩沙健身内"],
          picture: baseU + "fen123.png",
          price: "价值188元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "北京剑道会(胜古馆)",
          list: ["朝阳区安贞桥东胜古中路2号院4号楼胜古体育馆"],
          picture: baseU + "fen123.png",
          price: "价值188元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["剑道专业级教练课程"]
        }, {
          title: "课程总时长",
          list: ["60分钟"]
        }, {
          title: "教练及装备",
          list: ["1v1教练，全套装备；"]
        }, {
          title: "课程信息",
          list: ["准备活动：热身运动，把身体活动开；",
            "行礼：剑道，以礼始以礼终，开始和结束都必须要行礼；",
            "礼法学习：剑道练习中，无时无刻表现出行礼的重要性，老师对礼作出具体的讲解与教授；",
            "基础挥刀：剑道的基础动作，任何武道都注重基础的训练，良好的基础为日后高级的练习做好准备；新手更要从基础学起，才可以懂得什么是剑道；",
            "打击练习：运动上半节课的基础，进行较为实战的实际打击，感受剑道的力量感；",
            "行礼下课：行礼结束。"
          ]
        }]
      },
    ],
    sports_huang: [{
        name: "马术",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "Group4.png",
        colorPic: "",
        down: [{
          title: "将驹龙马术(朝阳校区)",
          list: ["北京市朝阳区高安屯南街循环经济产业园内"],
          picture: baseU + "fen123.png",
          price: "价值128元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "将驹龙马术(顺义校区)",
          list: ["北京市顺义区机场北线董各庄桥东北侧10号"],
          picture: baseU + "fen123.png",
          price: "价值128元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "传骑国际骑士院(太阳宫)",
          list: ["朝阳区7圣路太阳宫7圣中街12号爱琴海购物公园东侧"],
          picture: baseU + "fen123.png",
          price: "价值128元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "传骑国际骑士院(顺义)",
          list: ["朝阳区7圣路太阳宫7圣中街12号爱琴海购物公园东侧"],
          picture: baseU + "fen123.png",
          price: "价值128元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{

          title: "课程名称",
          list: ["马术基础体验课程"]
        }, {
          title: "使用时间",
          list: ["上午时间 8:00--12:00，下午时间 14:00--19:00"]
        }, {
          title: "预约信息",
          list: ["需提前1天预约"]
        }, {
          title: "适用人群",
          list: ["3岁以上"]
        }, {
          title: "教练及装备",
          list: ["1vN教练，全套装备。"]
        }, {
          title: "课程信息",
          list: ["参观马房让小朋友近距离接触观赏马匹 ", "马术文化及基础知识讲解(安全注意事项)", "喂马，由现场工作人员指导家长陪同一起喂马", "马术装备认识及功能使用讲解 ", "马匹护理和打理", "指导教学，马背体验10分钟左右"]
        }]
      },
      {
        name: "攀岩",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "MaskCopy.png",
        colorPic: "",
        down: [{
          title: "北京最爱攀岩",
          list: ["北京市通州区新华北街117号33栋通惠1933文化创意园钟楼402"],
          picture: baseU + "fen123.png",
          price: "价值300元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "岩石攀岩",
          list: ["大兴西红门鸿坤广场一层三号入口"],
          picture: baseU + "fen123.png",
          price: "价值300元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "耀岩攀岩馆",
          list: ["安平街3号3栋(乐图空间内)"],
          picture: baseU + "fen123.png",
          price: "价值300元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["攀岩专业级教练课程"]
        }, {
          title: "课程总时长",
          list: ["60分钟"]
        }, {
          title: "教练及装备",
          list: ["1v1教练，全套装备；"]
        }, {
          title: "课程信息",
          list: ["为学员介绍攀岩运动的起源，好处等，让学员更加了解攀岩这项运动。", "教练手把手教你如何打绳结、保护技术、攀登技巧、各种手法/脚法、发力技、耐力训练等"]
        }]
      },
      {
        name: "射箭",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "MaskCopy(1).png",
        colorPic: "",
        down: [{
          title: "i彻射箭",
          list: ["大兴区欣清南巷2号院1号楼1-105铺(昆仑决)"],
          picture: baseU + "fen123.png",
          price: "价值188元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "X弓场射箭主题运动综合馆",
          list: ["通州区怡乐南街京洲集团工业园区"],
          picture: baseU + "fen123.png",
          price: "价值188元",
          price1: "预约",
          is_pay: 1
        }, {
          title: "射箭吧",
          list: ["望京南湖中园129号B2层"],
          picture: baseU + "fen123.png",
          price: "价值188元",
          price1: "预约",
          is_pay: 1
        }, ],
        frames: [{
          title: "课程名称",
          list: ["射箭专业级教练课程"]
        }, {
          title: "课程总时长",
          list: ["30分钟"]
        }, {
          title: "教练及装备",
          list: ["1v1教练，全套装备；"]
        }, {
          title: "课程信息",
          list: ["教练讲解射箭规则、注意事项；",
            "准备活动：热身运动，让身体充分活动开；",
            "在教练的指导下，可以进行的自由射箭练习。"
          ]
        }]
      },
      // {
      //   name: "潜水",
      //   description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
      //   picture: baseU + "Rectangle6.png",
      //   colorPic: "",
      //   down: [{
      //     title: "seeise潜水俱乐部",
      //     list: ["双桥东路赛隆国际文化创意园B4-123"],
      //     picture: baseU + "fen123.png",
      //     price: "价值820元",
      //     price1: "预约",
      //     is_pay: 1
      //   }, ],
      //   frames: [{
      //     title: "课程名称",
      //     list: ["潜水基础教学"]
      //   }, {
      //     title: "使用时间",
      //     list: ["每周一19：30-21：00 每周日16：30-18：00"]
      //   }, {
      //     title: "预约信息",
      //     list: ["需提前1天预约"]
      //   }, {
      //     title: "适用人群",
      //     list: ["12岁以上"]
      //   }, {
      //     title: "教练及装备",
      //       list: ["1vN教练，提供基本的水肺潜水装备。"]
      //   }, {
      //     title: "课程信息",
      //     list: ["美容肌肤：使肌肤光洁、润滑、富有弹性；", "舒缓解压：促进人体各组织器官技能的改善；", "基础练习：教练带领进行基础练习；", "健身塑形：均匀地舒展身体的每一部分"]
      //   }]
      // },
      {
        name: "滑雪",
        description: ["握杆、鞠身、上挥、下杆", "过程虽然不激烈，但很性感"],
        picture: baseU + "MaskCopy(2).png",
        colorPic: "",
        down: [{
            title: "雪梦都室内滑雪",
            list: ["海淀区复兴路69号五棵松购物中心南区4楼"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪梦都室内滑雪",
            list: ["望京小街阜通东大街6号方恒购物中心2层"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          },
          // {
          //   title: "北极狐室内滑雪俱乐部",
          //   list: ["朝阳区平方路48号院内"],
          //   picture: baseU + "fen123.png",
          //   price: "价值388元",
          //   price1: "预约",
          //   is_pay: 1
          // },
          {
            title: "雪乐山室内滑雪(崇文门)",
            list: ["北京市东城区崇文门外大街18号号国瑞城购物中心LG地下2层"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪(亚运村)",
            list: ["朝阳区惠新西街小关北里217号小关羽毛球馆内"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(城外诚)",
            list: ["朝阳区城外诚家具广场教育培训基地一层"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(鸟巢)",
            list: ["朝阳区湖景东路9、11号2幢-01层-101"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪(回龙观)",
            list: ["昌平区回龙观东大街338号腾讯众创空间B1-035 "],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(高碑店)",
            list: ["朝阳区高碑店吉里国际艺术区W3-D"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(大兴)",
            list: ["大兴区生物医药基地永大路32号道镜运动中心"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(西红门)",
            list: ["大兴区鸿坤体育公园鸿坤广场B座对面"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪(王府井)",
            list: ["东城区王府井大街301号新燕莎金街购物广场地下1层MB121-122"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(金源店)",
            list: ["海淀区远大路一号世纪金源购物中心E27通道地下一层"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(望京店)",
            list: ["朝阳区望京花家地中街中环南路2号(朝阳市民终身教育服务中心)"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          }, {
            title: "雪乐山室内滑雪馆(合生汇)",
            list: ["朝阳区西大望路21号合成汇4层12号"],
            picture: baseU + "fen123.png",
            price: "价值388元",
            price1: "预约",
            is_pay: 1
          },
        ],
        frames: [{
          title: "课程名称",
          list: ["滑雪专业级教练课程"]
        }, {
          title: "课程总时长",
          list: ["45分钟"]
        }, {
          title: "教练及装备",
          list: ["1v1教练，全套装备"]
        }, {
          title: "课程信息",
          list: ["一节滑雪课的课时为45分钟，滑雪课开始前作热身运动、选择单板/双板(五岁以上可学单板)；由工作人员带领穿戴雪具；",
            "由教练带领上滑雪机，全程教练在旁边教学指导，由于滑雪机特性，需要上15分钟休息15分，再上机15分，结束课程。"
          ]
        }]
      },
    ],
    checkedIndex: 0,
    cardsStatus: [{
      type: 1,
      isBuy: false,
      cardNum: "6 6 8 8 9 9 8 8 ",
      endTime: "2019-01-31",
      count: 0
    }, {
      type: 2,
      isBuy: false,
      cardNum: 66889988,
      endTime: "2019-01-31",
      count: 0
    }, {
      type: 3,
      isBuy: false,
      cardNum: 66889988,
      endTime: "2019-01-31",
      count: 0
    }],
    cards: [{
      name: "少儿运动畅享卡",
      type: 1,
      price: 199,
      isBuy: false,
      cardNum: 66889988,
      endTime1: "2019-01-31",
      expiryDate: 90,
      endTime: "2018-10-07 23:59:59",
      picture: baseU + "ka.png",
      pictureBg: "/assets/vipcard/shaoerbg.png",
      btnTxt: "立即开通享五大会员权益",
      titTxt1: "精选运动",
      lisTxt1: "以下每家场馆可体验一次",
      lisTxt_1: "以下每家场馆可体验一次",
      lisTxt1: "以下每家场馆可体验一次",
      botBtnTxt: "立即以139元开通",
      botBtnImage: baseU + "btn1.png",
      botBtnClass: "btn1",
      includeSports_ju: [0, 1, 2, 4, 5, 6, 7, 3],
      includeItems: [{
        name: "8项运动",
        description: "精选超值体验课程",
        picture: baseU + "cion.png"
      }, {
        name: "40家场馆",
        description: "每家场馆体验一次",
        picture: baseU + "icon.png"
      }, {
        name: "会费全免",
        description: "零会费轻松体验",
        picture: baseU + "items/shaoer2.png"
      }, {
        name: "专业装备",
        description: "场馆免费提供装备",
        picture: baseU + "items/shaoer3.png"
      }, {
        name: "极速约课",
        description: "管家帮您闪电约课",
        picture: baseU + "items/shaoer4.png"
      }, {
        name: "专享服务",
        description: "7*12小时为您服务",
        picture: baseU + "items/shaoer5.png"
      }],
      mapPic: baseU + "map1.png?a=1",
      mapTipsPic: baseU + "map1tips.png?a=1",
    }, {
      name: "精英运动臻享卡",
      type: 2,
      price: 409,
      expiryDate: 90,
      cardNum: 66889988,
      endTime1: "2019-01-31",
      isBuy: false,
      endTime: "2018-10-07 23:59:59",
      picture: baseU + "ka(1).png",
      pictureBg: "/assets/vipcard/zhenxiangbg.png",
      btnTxt: "立即开通享八大会员权益",
      titTxt: "专业课程",
      lisTxt: "从以下运动中选择2项，每项运动可体验一次",
      lisTxt_1: "从以下运动中选择2项",
      lisTxt_2: "每项运动可体验一次",
      titTxt1: "精选运动",
      lisTxt1: "以下每家场馆可体验一次",
      botBtnTxt: "立即以499元开通",
      botBtnImage: baseU + "btn2.png",
      botBtnClass: "btn2",
      includeSports_ju: [0, 1, 2, 4, 5, 6, 7, 3],
      includeSports_huang: [0, 1, 2, 3],
      includeItems: [{
        name: "5选2",
        description: "精选专业级课程",
        picture: baseU + "items/zhenxiang1.png"
      }, {
        name: "8项运动",
        description: "精选超值体验课程",
        picture: baseU + "cion(1).png"
      }, {
        name: "40家场馆",
        description: "每家场馆体验一次",
        picture: baseU + "icon(1).png"
      }, {
        name: "会费全免",
        description: "零会费轻松体验",
        picture: baseU + "items/zhenxiang2.png"
      }, {
        name: "专业装备",
        description: "场馆免费提供装备",
        picture: baseU + "items/zhenxiang4.png"
      }, {
        name: "极速约课",
        description: "管家帮您闪电约课",
        picture: baseU + "items/zhenxiang5.png"
      }, {
        name: "专享服务",
        description: "7*12小时为您服务",
        picture: baseU + "items/zhenxiang6.png"
      }, {
        name: "金牌教练",
        description: "资深教练专业指导",
        picture: baseU + "items/zhenxiang2.png"
      }, ],
      mapPic: baseU + "map2.png?a=1",
      mapTipsPic: baseU + "map2tips.png?a=1",
    }, {
      name: "精英运动尊享卡",
      type: 3,
      price: 699,
      expiryDate: 180,
      cardNum: 66889988,
      endTime1: "2019-01-31",
      isBuy: false,
      endTime: "2018-10-07 23:59:59",
      picture: baseU + "ka(2).png",
      pictureBg: "/assets/vipcard/zunxiangbg.png",
      btnTxt: "立即开通享十大会员权益",
      titTxt: "专业课程",
      lisTxt: "以下5项运动中，每项运动可体验一次",
      lisTxt_1: "以下5项运动中",
      lisTxt_2: "每项运动可体验一次",
      titTxt1: "精选运动",
      lisTxt1: "以下每家场馆可体验一次",
      botBtnTxt: "立即以699元开通",
      botBtnImage: baseU + "btn3.png",
      botBtnClass: "btn3",
      includeSports_ju: [0, 1, 2, 4, 5, 6, 7, 3],
      includeSports_huang: [0, 1, 2, 3],
      includeItems: [{
        name: "精选5项",
        description: "精选专业级课程",
        picture: baseU + "items/zunxiang1.png"
      }, {
        name: "8项运动",
        description: "精选超值体验课程",
        picture: baseU + "cion(2).png"
      }, {
        name: "40家场馆",
        description: "每家场馆体验一次",
        picture: baseU + "icon(2).png"
      }, {
        name: "会费全免",
        description: "零会费轻松体验",
        picture: baseU + "items/zunxiang2.png"
      }, {
        name: "专业装备",
        description: "场馆免费提供装备",
        picture: baseU + "items/zunxiang4.png"
      }, {
        name: "极速约课",
        description: "管家帮您闪电约课",
        picture: baseU + "items/zunxiang5.png"
      }, {
        name: "专享服务",
        description: "7*12小时为您服务",
        picture: baseU + "items/zunxiang6.png"
      }, {
        name: "金牌教练",
        description: "资深教练专业指导",
        picture: baseU + "items/zunxiang8.png"
      }],
      mapPic: baseU + "map2.png?a=1",
      mapTipsPic: baseU + "map2tips.png?a=1",
    }],
    hide: true,
    tips_hidden: false

  },
  yuyueTips: function() {
    wx.showToast({
      title: '10.15日开放预约，敬请期待。',
      icon: 'none',
      duration: 2000
    })
  },
  tips_hidden: function() {
    this.setData({
      hide: !this.data.hide
    })
  },
  changeCard: function(event) {
    this.setData({
      checkedIndex: event.detail.current
    })
  },
  showFrames2: function() {
    this.setData({
      isShowFrames2: true
    })
  },
  hideFrames2: function() {
    this.setData({
      isShowFrames2: false
    })
  },
  showFrames: function(event) {
    let data = this.data.sports_ju[event.currentTarget.dataset.index].frames;
    // let data1 = this.data.sports_huang[event.currentTarget.dataset.index].frames;
    this.setData({
      frames: data,
      // frames1: data1,
      isShowFrames: true
    })
  },
  hideFrames: function(event) {
    this.setData({
      frames: [],
      // frames1: [],
      isShowFrames: false
    })
  },
  showFrames_s: function(event) {
    let data = this.data.sports_huang[event.currentTarget.dataset.index].frames;
    // let data = this.data.sports_huang[event.currentTarget.dataset.index].frames;
    this.setData({
      frames: data,
      isShowFrames: true
    })
  },
  hideFrames_s: function(event) {
    this.setData({
      frames: [],
      isShowFrames: false
    })
  },
  memberShip: function(e) {
    console.log(e.currentTarget.id)
    this.setData({
      checkedIndex: e.currentTarget.id,
      isShowFrames3: true
    })
  },
  preventTouchMove: function(e) {

  },
  hideFrames3: function() {
    this.setData({
      isShowFrames3: false
    })
  },
  buy: function() {
    let cardType = this.data.cards[this.data.checkedIndex].type;
    wx.navigateTo({
      url: `/pages/vipCardPay/index?cardType=${cardType}`,
    })
  },

  changeGoodsSwip: function (detail) {
    if (detail.detail.source == "touch") {
      //当页面卡死的时候，current的值会变成0 
      if (detail.detail.current == 0) {
        //有时候这算是正常情况，所以暂定连续出现3次就是卡了
        let swiperError = this.data.swiperError
        swiperError += 1
        this.setData({ swiperError: swiperError })
        if (swiperError >= 3) { //在开关被触发3次以上
          console.error(this.data.swiperError)
          this.setData({ goodsIndex: this.data.preIndex });//，重置current为正确索引
          this.setData({ swiperError: 0 })
        }
      } else {//正常轮播时，记录正确页码索引
        this.setData({ preIndex: detail.detail.current });
        //将开关重置为0
        this.setData({ swiperError: 0 })
      }
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    console.log(options);
  },

  phoneCall: function(e) { // 底部打电话
    wx.makePhoneCall({
      phoneNumber: "400-610-9559"
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {
    // let nowTime = Date.parse(new Date()),
    //     startTime = Date.parse(new Date("2018/10/01 00:00:00")),
    //     endTime = Date.parse(new Date("2018/10/07 23:59:59"));
    // console.log(nowTime,startTime,endTime);
    // if (nowTime > endTime) {
    //     // 超出结束时间
    //     this.setData({
    //         buyBtnType: 2
    //     });
    // } else if (nowTime < startTime) {
    //     // 未到开始时间
    //     this.setData({
    //         buyBtnType: 0
    //     });
    // } else {
    //     // 发售期
    //     this.setData({
    //         buyBtnType: 1
    //     });
    // }
    let _this = this;

    wx.request({
      url: baseURL + '/Community/order/tkindex',
      header: {
        'Content-Type': 'application/x-www-form-urlencoded',
        'token': wx.getStorageSync('token').token
      },
      success: function(res) {
        console.log(res)
        _this.setData({
          cardsStatus: res.data.result
        })
      },
      fail: function(res) {

      },
    })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})